package monster.flight.admin.action.xtgl.menu;
import monster.comm.action.BaseJsonAction;
import monster.comm.log.ILog;
import monster.comm.log.LogService;
import monster.comm.util.ReturnConstant;
import monster.flight.admin.manager.service.xtgl.MenuService;
import monster.flight.comm.entity.vo.Xt_men;
/**
 * 
* 创建信息=============
* 类名: monster.flight.admin.action.xtgl.menu.MenuCheckAction
* 类作用描述: 后台菜单删除
* 创建人： 鲜虎 
* 创建时间： 2013-1-25 下午03:42:25
* 修改信息1=============
* 修改类型:     //1.修改bug 2.业务变化修改
* 修改描述: 
* 修改人：  
* 修改时间：
 */
public class MenuDelAction extends BaseJsonAction {
	private static final long serialVersionUID = 1L;
	private static ILog log = LogService.getLog(MenuDelAction.class);
	private MenuService menuService;
	private Xt_men xt_menVO;
	public String delMenu(){
		String isLogin = isLogin();//是否登录
		if(!"1".equals(isLogin)){
			returnVO.returnCode=ReturnConstant.IS_NOT_LOGIN;
    	}else{
    		try {
    			System.out.println(xt_menVO.getFomcat());
    			String fomcat=xt_menVO.getFomcat();
    			menuService.deleteMenAndChild(fomcat);
    		} catch (Exception e) {
    			returnVO.returnCode=ReturnConstant.IS_ERR;
        		returnVO.returnDesc=e.getMessage();
        		log.error(e.getMessage());
			}
    	}
		return SUCCESS;
	}
	public Xt_men getXt_menVO() {
		return xt_menVO;
	}
	public void setXt_menVO(Xt_men xt_menVO) {
		this.xt_menVO = xt_menVO;
	}
	public void setMenuService(MenuService menuService) {
		this.menuService = menuService;
	}
}